package demo;

import javanet.exception.JavaNETException;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;

@Stateless
@LocalBean
public class AccountFacade {

	public String login(String username, String password) throws JavaNETException {
		System.out.println("login: " + username + "("+password+")");
		if (!"holzer".equals(username))
			throw new JavaNETException("LOGIN1", "Invalid username or password.");
			
		return "Markus Holzer";
		
	}

}
